package io.sage.modules.outwarehouse.dao;

import io.sage.modules.outwarehouse.entity.BGoodsReceiveRecord;
import io.sage.modules.outwarehouse.entity.BGoodsReceiveRecordExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BGoodsReceiveRecordMapper {
    int countByExample(BGoodsReceiveRecordExample example);

    int deleteByExample(BGoodsReceiveRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BGoodsReceiveRecord record);

    int insertSelective(BGoodsReceiveRecord record);

    List<BGoodsReceiveRecord> selectByExample(BGoodsReceiveRecordExample example);

    BGoodsReceiveRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BGoodsReceiveRecord record, @Param("example") BGoodsReceiveRecordExample example);

    int updateByExample(@Param("record") BGoodsReceiveRecord record, @Param("example") BGoodsReceiveRecordExample example);

    int updateByPrimaryKeySelective(BGoodsReceiveRecord record);

    int updateByPrimaryKey(BGoodsReceiveRecord record);
    
    /**
     * 员工借出工具列表
     * @param params
     * @return
     */
    List<BGoodsReceiveRecord> selectReceiveRecordList(Map<String, Object> params);
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);

    int updateStatus(Map<String, Object> param);
}